// #ifndef VUE3
import Vue from 'vue'
import App from './App'
import uView from '@/uni_modules/uview-ui'
import utils from "@/utils/index.js"
Vue.use(uView)
Vue.config.productionTip = false
//多语言
import messages from './locale/index';
let lang = uni.getStorageSync("lang")
if (lang == "") {
	lang = "en"
	uni.setStorageSync("lang", "en")
}
let i18nConfig = {
	// locale: lang,
	locale: "zh-Hans",
	messages
}
import VueI18n from 'vue-i18n';
Vue.use(VueI18n);
const i18n = new VueI18n(i18nConfig);
App.mpType = 'app'
Vue.prototype.$utils = utils
// console.log(Vue.prototype, "<<<<<<<<<<<<<")
const app = new Vue({
	i18n,
	...App
})
require('@/utils/request.js')(app)
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
import App from './App.vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif